﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wozuji.Logic
{
    class SendMail
    {
        public void sendmail(string to, string content, string subject)
        {
            Wozuji.Common.Email.CEmail mail = new Wozuji.Common.Email.CEmail();
            mail.MailServerName = "smtp.163.com";
            mail.MailUsername = "wozuji";
            mail.MailUserPassword = "Lucky2007";
            mail.MailSubject = subject;
            mail.RecipientMail = to;
            mail.MailBody = content;
            mail.MailAuthentication = true;
            mail.SenderMail = "wozuji@163.com";
            mail.MailBodyEncoding = System.Text.Encoding.Default;
            mail.MailAuthentication = true;

            mail.SendMail();

        }
    }
}
